package com.yb0os1.mapper;

import com.yb0os1.User;
import com.yb0os1.anno.Yb0os1Param;

import java.util.List;

public interface UserMapper {
    User selectById(@Yb0os1Param("id") Integer id);

    List<User> selectByName(@Yb0os1Param("name") String name);
    User selectByIdAndName(@Yb0os1Param("id")int i, @Yb0os1Param("name")String yb0os1);

    List<User> selectBatchByIds(@Yb0os1Param("id")List<Integer> ids);
    List<User> selectBatchByNames(@Yb0os1Param("name")List<String> names);

    List<User> selectBatchByIdsAndNames(@Yb0os1Param("id")List<Integer> ids,@Yb0os1Param("name")List<String> names);

    boolean insertUser(User user);

}
